
package com.scs.application.modules.settlement.request;

import com.scs.application.core.model.PageRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BillItemQueryRequest extends PageRequest {

    /** 记账单ID */
    private String billId;

    /** 记账单号 */
    private String code;

    /** 期号 */
    private String periodNo;

    /** 商品名 */
    private String materialName;

    /**商品编码*/
    private String materialCode;

    /** 品规 */
    private String materialSpec;

    /** 院方名称 */
    private String hospitalName;

    /** 科室名称 */
    private String deptName;

    /** 供应商id */
    private String supplierId;

    private String hospitalId;

    private Integer status;

    /** 记账时间 */
    private String beginGmtBill;
    private String endGmtBill;

    /** 厂商名称 */
    private String manufacturerName;

    /** 批次 */
    private String lot;

    /**开票单ID*/
    private String invoiceId;

    /**记账单状态*/
    private Integer bStatus;

    /**分组条件*/
    private String groupByCondition;

    /** 价格 */
    private Double price;

    /**  HrpKEY**/
    private String hrpKey;

    /**  category**/
    private String category;

    /** 是否阳采 **/
    private String sunPurchaseCode;


    private GroupBy groupBy;

    @Data
    public static class GroupBy {
        /** 期号 */
        private boolean periodNo;

        /** 商品名 */
        private boolean materialName;

        /** 品规 */
        private boolean materialSpec;

        /** 所属仓库*/
        private boolean hrpWarehouseCode;

        /** 供应商*/
        private boolean supplierId;

        /** 批次*/
        private boolean lot;
    }

}
